package com.fxb.learn.module.core;

/**
 * core模块公共类
 *
 * @author fangjiaxiaobai
 * @date 2021-11-09 20:30
 */
public class RestResult<T> {

    private T data;

    private Integer code;

    private String errMsg;

    public RestResult(T data) {
        this.data = data;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public Integer getCode() {
        return code;
    }

    public void setData(T data) {
        this.data = data;
    }

    public T getData() {
        return data;
    }

    public String getErrMsg() {
        return errMsg;
    }

    public void setErrMsg(String errMsg) {
        this.errMsg = errMsg;
    }
}
